import fetch from '@/api'
// 获取列表
export function getStorehousePlanTypeList(params) {
    return fetch({
        method: 'get',
        url: `/warehouseStackPlanPrinciple`,
        params,
    })
}

//新增仓库策划类型
export function addStorehousePlanType(data) {  
    return fetch({
        method:'post',
        url:`/warehouseStackPlanPrinciple`,
        data,
    })
}

// 编辑
export function updateStorehousePlanType(id,data) {
    return fetch({
        method:'put',
        url:`/warehouseStackPlanPrinciple/${id}`,
        data,
    })
}

// 删除
export function deleteStorehousePlanType(id) {
    return fetch({
        method:'delete',
        url:`/warehouseStackPlanPrinciple/${id}`,
    })
}

// 原则
export function getPrincipleList(params) {
    return fetch({
        method: 'get',
        url: `/warehouseStackPlanFactorSource`,
        params,
    })
}

//查看策划类型
export function getPlanTypeList(params) {
    return fetch({
        method: 'get',
        url: `/warehouseStackPlanPrinciple/types`,
        params,
    })
}
